package com.yao.po;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-12-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("flowers")
@ApiModel(value="Flowers对象", description="")
public class Flowers implements Serializable  {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键，自增 ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间每次更新时自动更新")
    @TableField("updateTime")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除标志，0 表示未删除，1  表示已删除")
    @TableField("isDeleted")
    private Boolean isDeleted;

    @ApiModelProperty(value = "一级分类 ID")
    @TableField("category1Id")
    private Integer category1Id;

    @ApiModelProperty(value = "二级分类 ID")
    @TableField("category2Id")
    private Integer category2Id;

    @ApiModelProperty(value = "鲜花名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "销售价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "市场价")
    @TableField("marketPrice")
    private BigDecimal marketPrice;

    @ApiModelProperty(value = "销售数量")
    @TableField("saleCount")
    private Integer saleCount;

    @ApiModelProperty(value = "库存数量")
    @TableField("stockCount")
    private Integer stockCount;

    @ApiModelProperty(value = "图片 URL")
    @TableField("imageUrl")
    private String imageUrl;

    @ApiModelProperty(value = "花语")
    @TableField("floralLanguage")
    private Integer floralLanguage;

    @ApiModelProperty(value = "适用人群")
    @TableField("applyUser")
    private String applyUser;

    @ApiModelProperty(value = " 材质")
    @TableField("material")
    private String material;

    @ApiModelProperty(value = " 包装")
    @TableField("packing")
    private String packing;

    @ApiModelProperty(value = "是否推荐，0 表示不推荐，1 表示推荐")
    @TableField("isRecommend")
    private Boolean isRecommend;

    @ApiModelProperty(value = "详细的商品信息")
    @TableField("detailList")
    private String detailList;


    public Flowers() {
    }

    public Flowers( Integer id, LocalDateTime createTime, LocalDateTime updateTime, Boolean isDeleted, Integer category1Id, Integer category2Id, String name, BigDecimal price, BigDecimal marketPrice, Integer saleCount, Integer stockCount, String imageUrl, Integer floralLanguage, String applyUser, String material, String packing, Boolean isRecommend, String detailList) {
        this.id = id;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
        this.category1Id = category1Id;
        this.category2Id = category2Id;
        this.name = name;
        this.price = price;
        this.marketPrice = marketPrice;
        this.saleCount = saleCount;
        this.stockCount = stockCount;
        this.imageUrl = imageUrl;
        this.floralLanguage = floralLanguage;
        this.applyUser = applyUser;
        this.material = material;
        this.packing = packing;
        this.isRecommend = isRecommend;
        this.detailList = detailList;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return createTime
     */
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateTime
     */
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return isDeleted
     */
    public Boolean getIsDeleted() {
        return isDeleted;
    }

    /**
     * 设置
     * @param isDeleted
     */
    public void setIsDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

    /**
     * 获取
     * @return category1Id
     */
    public Integer getCategory1Id() {
        return category1Id;
    }

    /**
     * 设置
     * @param category1Id
     */
    public void setCategory1Id(Integer category1Id) {
        this.category1Id = category1Id;
    }

    /**
     * 获取
     * @return category2Id
     */
    public Integer getCategory2Id() {
        return category2Id;
    }

    /**
     * 设置
     * @param category2Id
     */
    public void setCategory2Id(Integer category2Id) {
        this.category2Id = category2Id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return price
     */
    public BigDecimal getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    /**
     * 获取
     * @return marketPrice
     */
    public BigDecimal getMarketPrice() {
        return marketPrice;
    }

    /**
     * 设置
     * @param marketPrice
     */
    public void setMarketPrice(BigDecimal marketPrice) {
        this.marketPrice = marketPrice;
    }

    /**
     * 获取
     * @return saleCount
     */
    public Integer getSaleCount() {
        return saleCount;
    }

    /**
     * 设置
     * @param saleCount
     */
    public void setSaleCount(Integer saleCount) {
        this.saleCount = saleCount;
    }

    /**
     * 获取
     * @return stockCount
     */
    public Integer getStockCount() {
        return stockCount;
    }

    /**
     * 设置
     * @param stockCount
     */
    public void setStockCount(Integer stockCount) {
        this.stockCount = stockCount;
    }

    /**
     * 获取
     * @return imageUrl
     */
    public String getImageUrl() {
        return imageUrl;
    }

    /**
     * 设置
     * @param imageUrl
     */
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    /**
     * 获取
     * @return floralLanguage
     */
    public Integer getFloralLanguage() {
        return floralLanguage;
    }

    /**
     * 设置
     * @param floralLanguage
     */
    public void setFloralLanguage(Integer floralLanguage) {
        this.floralLanguage = floralLanguage;
    }

    /**
     * 获取
     * @return applyUser
     */
    public String getApplyUser() {
        return applyUser;
    }

    /**
     * 设置
     * @param applyUser
     */
    public void setApplyUser(String applyUser) {
        this.applyUser = applyUser;
    }

    /**
     * 获取
     * @return material
     */
    public String getMaterial() {
        return material;
    }

    /**
     * 设置
     * @param material
     */
    public void setMaterial(String material) {
        this.material = material;
    }

    /**
     * 获取
     * @return packing
     */
    public String getPacking() {
        return packing;
    }

    /**
     * 设置
     * @param packing
     */
    public void setPacking(String packing) {
        this.packing = packing;
    }

    /**
     * 获取
     * @return isRecommend
     */
    public Boolean getIsRecommend() {
        return isRecommend;
    }

    /**
     * 设置
     * @param isRecommend
     */
    public void setIsRecommend(Boolean isRecommend) {
        this.isRecommend = isRecommend;
    }

    /**
     * 获取
     * @return detailList
     */
    public String getDetailList() {
        return detailList;
    }

    /**
     * 设置
     * @param detailList
     */
    public void setDetailList(String detailList) {
        this.detailList = detailList;
    }

    public String toString() {
        return "Flowers{serialVersionUID = " + serialVersionUID + ", id = " + id + ", createTime = " + createTime + ", updateTime = " + updateTime + ", isDeleted = " + isDeleted + ", category1Id = " + category1Id + ", category2Id = " + category2Id + ", name = " + name + ", price = " + price + ", marketPrice = " + marketPrice + ", saleCount = " + saleCount + ", stockCount = " + stockCount + ", imageUrl = " + imageUrl + ", floralLanguage = " + floralLanguage + ", applyUser = " + applyUser + ", material = " + material + ", packing = " + packing + ", isRecommend = " + isRecommend + ", detailList = " + detailList + "}";
    }
}
